package com.foreknow.demo19;

/**
 * 自定义异常类
 */
public class MyException extends Exception{

    private String detail;

    public MyException(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "MyException["+detail+"]";
    }
}